﻿<ccl:CustomWindow Style="{StaticResource {x:Type ccl:CustomWindow}}" x:Class="Starehe.Views.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ccl="clr-namespace:Helper.Controls;assembly=Helper"
		xmlns:local="clr-namespace:Starehe"
        Title="Login" Height="280" Width="500" ResizeMode="NoResize" ShowInTaskbar="False" Topmost="True" 
                        WindowStartupLocation="CenterScreen" >
   
    <Border BorderBrush="{DynamicResource Accent}" BorderThickness="1">
        <Grid>
            <TextBlock HorizontalAlignment="Left" Margin="30,30,0,0"                    
                    VerticalAlignment="Top" Text="Starehe Management System" Style="{DynamicResource Heading1}"/>
            <TextBox  HorizontalAlignment="Left" Margin="145,103,0,0" Name="txtUsr" VerticalAlignment="Top" Width="200" 
                    TabIndex="1" />
            <Button Content="_Login" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,120,10" 
                Name="btnLogin" Width="100" Click="btnLogin_Click" TabIndex="3" IsDefault="True" />
            <TextBlock Foreground="Red" HorizontalAlignment="Left" Margin="12,0,0,29" Text="Invalid User name or Password." 
                   Style="{StaticResource Emphasis}" VerticalAlignment="Bottom" Name="tbInvalid" Visibility="Hidden" />
            <TextBlock  HorizontalAlignment="Left" Margin="10,211,0,0" Name="textBlock10" Text="Password is case-sensitive." 
                        VerticalAlignment="Top" Foreground="{DynamicResource Accent}" FontWeight="Normal" />
            <Button Content="_Exit"  HorizontalAlignment="Right" Margin="0,0,10,10" Name="btnExit" 
                VerticalAlignment="Bottom" Width="100" Click="btnExit_Click" TabIndex="4" IsCancel="True"/>

            <TextBlock Text="User Name:" HorizontalAlignment="Left" Margin="68,101,0,0" VerticalAlignment="Top" />
            <TextBlock Text="Password:" HorizontalAlignment="Left" Margin="76,145,0,0" VerticalAlignment="Top" />
            <PasswordBox Height="23" HorizontalAlignment="Left" Margin="145,145,0,0" Name="txtPwd" VerticalAlignment="Top" 
                         Width="200" TabIndex="2" />
        </Grid>
    </Border>
</ccl:CustomWindow>
